<?php

namespace App\Lib\Rooms\Listeners;

use App\Lib\Rooms\Events\ActionDrawEvent;
use Hyperf\Event\Annotation\Listener;
use Hyperf\Event\Contract\ListenerInterface;

/**
 * 摸牌完成处理
 * Class ActionDrawListener
 * @Listener()
 * @package App\Lib\Rooms\Listeners
 */
class ActionDrawListener implements ListenerInterface
{


    public function listen(): array
    {
        return [
            ActionDrawEvent::class,
        ];
    }

    public function process(object $event)
    {
        /** @var ActionDrawEvent $event */
        $actionModel = $event->actionModel;
        $rounds = $event->rounds;
        $val = $event->val;
        dump('创建房间');
    }
}